home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
VISUALBA
/
VBUTIL.ZIP
/
FVIEW1.FRM
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1993-03-04
|
4KB
|
124 lines
Form1
File Viewer
Form1%
ToggleBtn
Toggle Read Button
FilenameBox
ReadBtn
FindFileBtn
Find File
FindBox
FindBtn
DosBox
DosBtn
DOS Command
WinBtn
Windows Command
ShowOSBtn
Show/Hide OS
QuitBtn
TextBox
FilenameLbl
Filename Input
FindLbl
Find Input
DosLbl
DOS/Win Input
QuitBtn_Click
Form_Click
ReadBtn_Click
FilenameBox
LineInput
TextBox%
TextLst_ClickG
TextLstn
ListCount!
ListSize
FindBtn_ClickO
CurrentLine
Text1_Changev
FindBox_Change
FindBox
ListIndex
Found
FilenameBox_Change
Form_Load
MultiLine
ScrollBars
SelStart
SelLength
CurrentIndexr
CurIndex
TextBox_Change
Search
SelText
BadFile
EndOfSub[
Command1_Click
DosBtn_Click
DosBox
Dummy7
WinBox_Click
DosBox_Changee
Label1_Clicku
FindFileBtn_Click
DosLbl_Click
Filename
subdirectory
ToggleBtn_Click
ReadBtn
Enabled
False
TrueQ
ShowShellsBtn_Click
Visible
WinBtn_Click
DosBtn
WinBtn
DosLbl
Label3_Click
FilenameLbl_Click
FindLbl_Click
ShowOSBtn_Click
DosBtn_Click
invoke the DOSBAT batch file
dosbat.bat
FindBtn_Click
update the index to the current character
store the text of the Find box in the variable Find
is variable Find empty?
nothing to find
locate the index of the next substring Find in thet
text boxh
found a match?e
Yes! Display the matching text as selected text
No! Clear any selected text
FindFileBtn_Click
invoke the DOS dir command with the /s
subdirectory option and the /p paginatedn
output option
dosbat.bat dir
/s/p
QuitBtn_Click
ReadBtn_Click
obtain filename from the filename text boxs
if filename is an empty string, exitx
set error-handler
open the file
clear variable to reuse it
loop to read the text lines from the ASCII file
append a new line
copy F into text box
close the filep
exit procedurep
* Error-handler
Cannot open file
File I/O Error
ShowOSBtn_Click
toggle the Visible property of the DosBox text box,
the DosBtn button, the WinBtn button, and the DosLblL
label
ToggleBtn_Click
WinBtn_Click
invoke a Windows application